<?php
namespace app\common\command;  
  
use think\console\Command;
use think\console\Input;
use think\console\Output;
  

class Contrab extends Command
{
    protected function configure()
    {
        $this->setName('contrab')->setDescription('this is a mini contrab manager tool!');
    }

    protected function execute(Input $input, Output $output)
    {
        $contrab = new \contrab\Dispatcher(RUNTIME_PATH . '/contrab_cache/', APP_PATH . '/common/contrab/');
        $contrab->addTask();
        $contrab->boot();
        $output->writeln("time." . date('Y-m-d H:i:s'));
    }
}
